import requests
import json

s = requests.session()
print(s)
login_url = "http://localhost:5000/api/v1.0/sessions"
body = {
    "mobile": "13620228033",
    "password": "123456"
}
header = {
    "Content-Type": "application/json"
}
ret = s.request(method="post", url=login_url, data=json.dumps(body), headers=header).json()
print(ret)
print(s)
i_url = "http://localhost:5000/api/v1.0/user/houses"
ret2 = s.request(method="get", url=i_url).json()
print(ret2)
